package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"wechat1/wechat1api/internal/config"
	"wechat1/wechat1rpc/wechat1rpcclient"
)

type ServiceContext struct {
	Config     config.Config
	Wechat1Rpc wechat1rpcclient.Wechat1rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		Wechat1Rpc: wechat1rpcclient.NewWechat1rpc(zrpc.MustNewClient(c.Wechat1Rpc)),
	}
}
